import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'credit'
})
export class CreditPipe implements PipeTransform {

  transform(creditsum: number): string {
    if (creditsum >= 40) {
      return '是';
    }
    return '否';
  }

}
